negotiator.qualitymeasures
Class UtilspaceTools

java.lang.Object
  extended by negotiator.qualitymeasures.UtilspaceTools

public class UtilspaceTools
extends java.lang.Object

Collection of useful methods to analyze a pair of utility spaces.

Author:
Mark Hendrikx

Constructor Summary
UtilspaceTools()
           
 
Method Summary
static double calculatePearsonCorrelationCoefficient(double[] setA, double[] setB)
          Calculate the Pearson distance between two sets.
static double calculateRankingDistance(double[] setA, double[] setB)
          Calculate the ranking distance between two sets.
static double distanceBetweenTwoBidPoints(BidPoint a, BidPoint b)
           
static double distanceBetweenTwoPoints(double ax, double ay, double bx, double by)
           
static double[] getIssueWeights(UtilitySpace space)
          Helper-method used to get the issue weights in an array of doubles.
static double getPearsonCorrelationCoefficientOfBids(UtilitySpace spaceA, UtilitySpace spaceB)
           
static double getPearsonCorrelationCoefficientOfIssueWeights(UtilitySpace spaceA, UtilitySpace spaceB)
           
static double getRankingDistanceOfBids(UtilitySpace spaceA, UtilitySpace spaceB, int simulations)
           
static double getRankingDistanceOfIssueWeights(UtilitySpace spaceA, UtilitySpace spaceB)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UtilspaceTools

public UtilspaceTools()
Method Detail

getRankingDistanceOfBids

public static double getRankingDistanceOfBids(UtilitySpace spaceA,
                                              UtilitySpace spaceB,
                                              int simulations)

getPearsonCorrelationCoefficientOfBids

public static double getPearsonCorrelationCoefficientOfBids(UtilitySpace spaceA,
                                                            UtilitySpace spaceB)

getRankingDistanceOfIssueWeights

public static double getRankingDistanceOfIssueWeights(UtilitySpace spaceA,
                                                      UtilitySpace spaceB)

getPearsonCorrelationCoefficientOfIssueWeights

public static double getPearsonCorrelationCoefficientOfIssueWeights(UtilitySpace spaceA,
                                                                    UtilitySpace spaceB)

getIssueWeights

public static double[] getIssueWeights(UtilitySpace space)
Helper-method used to get the issue weights in an array of doubles.

Parameters:
utilityspace -
Returns:
array of issue weights

calculatePearsonCorrelationCoefficient

public static double calculatePearsonCorrelationCoefficient(double[] setA,
                                                            double[] setB)
Calculate the Pearson distance between two sets.

Parameters:
setA -
setB -
Returns:

distanceBetweenTwoPoints

public static double distanceBetweenTwoPoints(double ax,
                                              double ay,
                                              double bx,
                                              double by)

distanceBetweenTwoBidPoints

public static double distanceBetweenTwoBidPoints(BidPoint a,
                                                 BidPoint b)

calculateRankingDistance

public static double calculateRankingDistance(double[] setA,
                                              double[] setB)
Calculate the ranking distance between two sets.

Parameters:
bidsUtilA -
bidsUtilB -
Returns: